<template>
  <div class="btn" @click="Tofather">{{ value }}</div>
</template>

<script>
export default {
  props: ['value'],
  methods: {
    Tofather(e) {
      console.log('儿子触发了')
      this.$emit('Myclick', e)
    }
  }
}
</script>

<style lang="less" scoped>
.btn {
  width: 100%;
  background-color: #cc3300;
  margin-top: 50/360 * 100vw;
  height: 50/360 * 100vw;
  border-radius: 25/360 * 100vw;
  color: #fff;
  text-align: center;
  line-height: 50/360 * 100vw;
  font-size: 16/360 * 100vw;
}
</style>
